import request from "@/utils/request"
import { UserLogin } from "@/types/user"
import { Response } from "@/types/response"
enum API {
    LOGIN_URL = '/user/login',
    USERINFO_URL = '/user/info',
}

export const login = (data:UserLogin)=> request.post<any,Response>(API.LOGIN_URL,data)
export const userInfo = ()=>request.get<any,Response>(API.USERINFO_URL)